<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:jsf="http://xmlns.jcp.org/jsf"
                xmlns:f="http://xmlns.jcp.org/jsf/core"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
                xmlns:p="http://primefaces.org/ui">

    <div class="content container">
        <div class="row">
            <div class="col-lg-12">
                <h2 class="page-title">
                    Eventos al que te has registrado, 
                    <small> #{clientBean.businessAssociateLoged.idPerson.name}</small>
                </h2>
            </div> 
        </div>
        <div class="row">
            <div class="col-lg-6">
                <div class="widget widget-table action-table">
                    <div class="widget-header"> <i class="icon-th-list"></i>
                        <h3>Mi registro de eventos</h3>
                    </div>
                    <!-- /widget-header -->
                    <div class="widget-content">

                        <table class="table table-striped table-bordered">
                            <thead>
                                <tr>
                                    <th> <strong>Titulo</strong> </th>
                                    <th> <strong>Horario</strong></th>
                                    <th class="td-actions"><strong>Asistencia</strong></th>
                                </tr>
                            </thead>
                            <tbody>
                                <ui:repeat value="#{clientBean.listMeetingBusinessAssociates}"
                                           var="metAss">
                                    <tr>
                                        <td> #{metAss.idMeeting.name} </td>
                                        <td> #{metAss.idMeeting.startDate} </td>
                                        <td class="td-actions">
                                            <p:commandLink id="ssr" styleClass="btn btn-small btn-success" rendered="#{metAss.assistan}">
                                                <i class="btn-icon-only icon-ok"> </i>
                                            </p:commandLink>
                                            <p:commandLink styleClass="btn btn-danger btn-small" rendered="#{!metAss.assistan}">
                                                <i class="btn-icon-only icon-remove"> </i>
                                            </p:commandLink>
                                        </td>
                                    </tr>
                                </ui:repeat>
                            </tbody>
                        </table>

                    </div>
                    <!-- /widget-content --> 
                </div>
            </div>
        </div>
    </div>
</ui:composition>

